import request from '@/server/request';
// import request from '../../utils/request.js';

// 获取任务详情
export function getProjectDetial(data) {
  return request({
    url: '/taskLibrary/projectDetial',
    method: 'post',
    data
  });
}

// 新评论
export function addComment(data, headers) {
  return request({
    url: '/taskLibrary/addComment',
    method: 'post',
    headers,
    data
  });
}

// 获取评论
export function listComment(data) {
  return request({
    url: '/taskLibrary/listComment',
    method: 'post',
    data
  });
}

// del评论
export function updCommentStatus(data) {
  return request({
    url: '/taskLibrary/updCommentStatus',
    method: 'post',
    data
  });
}

export function getAvatar(data) {
  return request({
    url: '/govDing/getAvatar',
    method: 'post',
    data
  });
}
